package com.xs.ai.tools;

import com.alibaba.dashscope.app.Application;
import jakarta.annotation.Resource;
import org.apache.catalina.core.ApplicationContext;
import org.springframework.ai.vectorstore.redis.RedisVectorStore;
import org.springframework.beans.factory.annotation.Autowired;
import redis.clients.jedis.JedisPooled;

import java.util.Optional;

/**
 * @author chenjl26787
 * @version 1.0
 * @date 2025/4/8$ 下午3:41
 */
public class RedisTools {
//    @Resource(name = "customVectorStore")
//    RedisVectorStore vectorStore;
//    Optional<JedisPooled> nativeClient = vectorStore.getNativeClient();
//
//if (nativeClient.isPresent()) {
//        JedisPooled jedis = nativeClient.get();
//        // Use the native client for Redis-specific operations
//    }
}
